import Request from '../utlis/request'

export const login = (data) => Request({
    url: `/api/user/login.do`, method:'post', params:data
})
export const userList = (url) => Request({
    url,method:'post',
})
export const sumList = () => Request({
    url:`/api/statistic/base_count.do`,method:'get',
})
// 订单页数据
export const order_list = (url) => Request({
    url,method:'get',
})
// 订单页搜索
export const order_search = (url) => Request({
    url,method:'get',
})
// 订单页详情
export const order_indexList = (url) => Request({
    url,method:'get',
})
// 商品页
export const goods_list = (url) => Request({
    url,method:'get',
})
// 商品页状态修改
export const goods_status = (url) => Request({
    url,method:'get',
})
// 商品页搜索
export const goods_search = (url) => Request({
    url,method:'get',
})
// 商品页详情
export const goods_detail = (url) => Request({
    url,method:'get',
})
// 商品页添加
export const goods_add = (url) => Request({
    url,method:'get'
})
// 商品页编辑
export const goods_edit = (url) => Request({
    url,method:'get'
})
export const goods_editInfo = (url) => Request({
    url,method:'get'
})
// 品类获取
export const goods_cate = () => Request({
    url:`/api/category/get_category.do?categoryId=0`,method:'get'
})
export const goods_cates = (id) => Request({
    url:`/api/category/get_category.do?categoryId=${id}`,method:'get'
})
// 修改品类
export const cate_edit = (url) => Request({
    url,method:'get'
})
// 添加品类
export const cate_add = (url) => Request({
    url,method:'get'
})